package com.hxh.crud.bean;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class Department {
    private String deptId;

    @Length(min = 1, max = 5)
    private String deptName;

    private Integer deptStatus;

    public Department() {
        super();
    }

    public Department(@NotEmpty String deptId, @Length(min = 1, max = 5) String deptName, @NotNull Integer deptStatus) {
        this.deptId = deptId;
        this.deptName = deptName;
        this.deptStatus = deptStatus;
    }
}